<?php
@session_start();
if (!isset($_SESSION['id_user'])){
	//header('Location://localhost/firstclassapartmentscordoba/panel_control/login.php');
	//header('Location:http://firstclassapartment.com.ar/panel_control/login.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="es">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="Atenticaci&oacute;n | Panel de Control | First Class Apartments Cordoba Argentina">
		<meta name="author" content="Pulce Web Solutions - www.pulce.com.ar">
		<!--Para que las páginas se muestren correctamente y el zoom funcione bien en los dispositivos móviles-->
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="keywords" content="Departamento,Alquiler,Temporal,Cordoba,Capital,Argentina,First Class Apartments,Alojamiento,Turismo,Panel,Control,LogIn,Auenticaci&oacute;n">

		<title>Atenticaci&oacute;n | Panel de Control | Alquiler de Apartamentos en C&oacute;rdoba Argentina | First Class Apartments C&oacute;rdoba Argentina | Apartamentos en C&oacute;rdoba Argentina</title>

		<?php
			include_once('../links.php');
			include_once('menu_bar.php');
		?>
		<!--JQUERY-->
		<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
		<!--BOOTSTRAP-->
		<script src="../js/bootstrap.min.js"></script>
		<!--CUSTOM JS-->
		<script src="../js/functions.js"></script>
		
		<script type="text/javascript">
		$(document).ready(function(){
			g("ajax.php?"+a('getParamGrales'),'div-result','div-msg','div-img',false);
			
			$('#btn-menu').on('click',function(e){
				$(location).attr('href','./index.php');
			});

			$('#btn-guardar').on('click',function(e){
				var reembolsable;
				if($("#inpDepositoReembolsable").is(':checked')){
					reembolsable=1;
				}else{
					reembolsable=0;
				}
				g("ajax.php?"+a('setParamGrales')+v('inpMinOcup')+v('inpMaxOcup')+v('inpMontoActPrecio')+v('inpBasePrecioOcup')+v('inpMontoActPrecio')+v('inpIncrCotizOficial')+v('inpIVA')+v('inpHorasVencReserva')+v('inpTelefono1')+v('inpTelefono2')+v('inpPorcDeposito')+c('reembolsable',reembolsable),'div-result','div-msg','div-img',false);
			});

			/*$('#formulario').on('change',function(e){
				if (isSet('div-msg'))
					$('#div-msg').fadeOut();
			});*/
		});
		</script>
	</head>
	<body class="panel">
		<div class="container">
			<div class="box-central">
				<div class="row">
					<div class="col-xs-4">
						<h1>Administrar Par&aacute;metros Generales</h1>
					</div>
					<div class="col-xs-2">
						<div id="div-img">
						</div>
					</div>
				</div>
				<div id="formulario">
					<div class="row margin-top-1em">
						<div class="col-xs-4">
							<label for="inpMinOcup" class="control-label label-custom">Ocupaci&oacute;n M&iacute;nima</label>
							<input id="inpMinOcup" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(Cantidad de personas)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpMaxOcup" class="control-label label-custom">Ocupaci&oacute;n M&aacute;xima</label>
							<input id="inpMaxOcup" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(Cantidad de personas)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpMontoActPrecio" class="control-label label-custom">Monto Actualizaci&oacute;n Precio</label>
							<input id="inpMontoActPrecio" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(U$S)</p>
						</div>
					</div>
					<div class="row margin-top-1em">
						<div class="col-xs-4">
							<label for="inpBasePrecioOcup" class="control-label label-custom">Base C&aacute;lculo Precio</label>
							<input id="inpBasePrecioOcup" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(Cantidad de personas)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpIncrCotizOficial" class="control-label label-custom">Incremento Cotizaci&oacute;n Oficial</label>
							<input id="inpIncrCotizOficial" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(%)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpIVA" class="control-label label-custom">I.V.A.</label>
							<input id="inpIVA" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(%)</p>
						</div>
					</div>
					<div class="row margin-top-1em">
						<div class="col-xs-4">
							<label for="inpHorasVencReserva" class="control-label label-custom">Horas Vencimiento Reserva</label>
							<input id="inpHorasVencReserva" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(Horas)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpTelefono1" class="control-label label-custom">Tel&eacute;fono 1</label>
							<input id="inpTelefono1" type="text" style="width: 10em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;"></p>
						</div>
						<div class="col-xs-4">
							<label for="inpTelefono2" class="control-label label-custom">Tel&eacute;fono 2</label>
							<input id="inpTelefono2" type="text" style="width: 10em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;"></p>
						</div>
					</div>
					<div class="row margin-top-1em">
						<div class="col-xs-4">
							<label for="inpPorcDeposito" class="control-label label-custom">Porcentaje M&iacute;nimo Dep&oacute;sito</label>
							<input id="inpPorcDeposito" type="text" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;">(%)</p>
						</div>
						<div class="col-xs-4">
							<label for="inpDepositoReembolsable" class="control-label label-custom">Mostrar Mens. Dep&oacute;sito NO Reembolsable</label>
							<input id="inpDepositoReembolsable" type="checkbox" style="width: 3em;margin-right: 5px;margin-left: 5px;"><p style="display: inline;"></p>
						</div>
					</div>
				
					<div class="row margin-top-1em">
						<div class="col-xs-4 col-xs-offset-2">
							<button id="btn-menu" class="btn btn-lg btn-danger" style="width:90%">Volver al Men&uacute; Principal</button>
						</div>
						<div class="col-xs-4">
							<button id="btn-guardar" class="btn btn-lg btn-success" style="width:90%">Guardar</button>
						</div>
					</div>
				</div>
				<div id="div-msg" class="margin-top-1em" style="display:none">
				</div>
				<div id="div-result">
				</div>
			</div>
		</div>
	</body>
</html>